package com.hook3.pianke.activity.base.radiouserbasepager.PrivateRadioViewpagerBase;

import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.GridView;

/**
 * Created by HOME on 2015/12/12.
 */
public class PrivateRadioDefineGridView extends GridView {
    public PrivateRadioDefineGridView(Context context) {
        super(context);
    }

    public PrivateRadioDefineGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public PrivateRadioDefineGridView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    public PrivateRadioDefineGridView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {

        if(ev.getAction() == MotionEvent.ACTION_HOVER_MOVE){
            return true;
        }

        return super.dispatchTouchEvent(ev);
    }
}
